import request from '@/utils/request'

// 查询护理类别列表
export function listNursingCategory(query) {
  return request({
    url: '/pg/nursingCategory/list',
    method: 'get',
    params: query
  })
}

// 查询护理类别所有列表
export function listAllNursingCategory(query) {
  return request({
    url: '/pg/nursingCategory/listAll',
    method: 'get',
    params: query
  })
}

// 查询护理类别详细
export function getNursingCategory(id) {
  return request({
    url: '/pg/nursingCategory/' + id,
    method: 'get'
  })
}

// 新增护理类别
export function addNursingCategory(data) {
  return request({
    url: '/pg/nursingCategory',
    method: 'post',
    data: data
  })
}

// 修改护理类别
export function updateNursingCategory(data) {
  return request({
    url: '/pg/nursingCategory',
    method: 'put',
    data: data
  })
}

// 删除护理类别
export function delNursingCategory(id) {
  return request({
    url: '/pg/nursingCategory/' + id,
    method: 'delete'
  })
}
